//
//  ARTWatchHisAlertView.m
//  ChartsDemo
//
//  Created by yunda on 2022/6/8.
//

#import "ARTWatchHisAlertView.h"

@implementation ARTWatchHisAlertView

-  (instancetype)init{
    self = [super init];
    if (!self) {
        return nil;
    }
    // init code
    NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"ARTWatchHisAlertView" owner:nil options:nil];
    // 加载nib
    self = [arrayOfViews objectAtIndex:0];
    self.backgroundColor = [UIColor whiteColor];
    
    J_ViewRadius(self, 16);
    _cancleButton.titleLabel.adjustsFontSizeToFitWidth = YES;
    _okButton.titleLabel.adjustsFontSizeToFitWidth = YES;
    [self refreshLaunage];
    return self;
}

- (void)refreshLaunage{
    _titleLabel.text = FYLocalizedString(@"It is found that new data has not been synchronized to the app. Do you need to synchronize?", @"");
    [_cancleButton setTitle:FYLocalizedString(@"ignore", @"") forState:UIControlStateNormal];
    [_okButton setTitle:FYLocalizedString(@"need", @"") forState:UIControlStateNormal];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
